//
// Created by Scave on 2023/11/13.
//

#include "Renderer.h"

NS_RIDER_BEGIN
    Renderer::Renderer(const SMART_PTR<RenderContext>& context) {
        this->context_ = context;
    }

    UInt64 Renderer::RenderTypeToBgfxState(RenderType type) {
        switch (type) {
            case RenderType::Points:
                return BGFX_STATE_PT_POINTS;
            case RenderType::Lines:
                return BGFX_STATE_PT_LINES;
            case RenderType::LineStrip:
                return BGFX_STATE_PT_LINESTRIP;
            case RenderType::TrisStrip:
                return BGFX_STATE_PT_TRISTRIP;
            default:
                return UINT64_C(0);
        }
    }

NS_RIDER_END
